package com.wangzz.mallchat.common.common.constant;

public class RedisKey {

    /**
     * 通用业务pre key
     */
    public static final String BASE_KEY = "mallchat:chat";

    /**
     * 用户key
     */
    public static final String USER_TOKEN_KEY = "userToken:uid_%d";

    /**
     * 获取redisKey
     *
     * @param key
     * @param o
     * @return
     */
    public static String getKey(String key, Object... o) {
        return BASE_KEY + String.format(key, o);
    }
}
